<template>
  <div>
    <span class="hotSearch">热门搜索</span>
    <ul class="hotSearchList">
      <li v-for="list in hotSearch" :key="list.id" @click="getDoctors(list)">{{list.name}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    hotSearch: Array
  },
  methods: {
    getDoctors(value) {
      this.$router.push({

        query: value
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.hotSearch {
  display: inline-block;
  padding: 0 20rpx;
  line-height: 60rpx;
  height: 60rpx;
  width: 100%;
  font-size: 24rpx;
  background-color: #fafafa;
  color: #898989;
  box-sizing: border-box;
}
.hotSearchList {
  color: #666666;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #e1e1e1;
  li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 60rpx;

    box-sizing: border-box;

    font-size: 26rpx;
    border-right: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    &:nth-child(4n) {
      border-right: none;
    }
  }
}
</style>